<?	
class BBCodeParser
{
   private $post;
   public function __construct($object)
   {
      $this->post = $object;
   }
   public function getContent()
   {
      // Przetwarzanie kodu BBCode.
      $post->filter();
      $content = $this->parseBBCode($post->getContent());
      return $content;
   }
   private function parseBBCode($content)
   {	
      // Przetwarzanie kodu BBCode w treci oraz zwrot treci.
   }
}
?>
